package hamsterwrench.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.GridLayout;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import java.awt.FlowLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.BoxLayout;
import com.jgoodies.forms.factories.FormFactory;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.TitledBorder;
import javax.swing.JMenuItem;
import javax.swing.JSeparator;

public class HomeScreen extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					HomeScreen frame = new HomeScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public HomeScreen() {
		setResizable(false);
		setTitle("HamsterWrench");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 564, 267);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnHamsterwrench = new JMenu("HamsterWrench");
		mnHamsterwrench.setFont(new Font("Segoe UI", Font.BOLD, 12));
		menuBar.add(mnHamsterwrench);
		
		JMenuItem mntmAbout = new JMenuItem("About...");
		mnHamsterwrench.add(mntmAbout);
		
		JMenuItem mntmExit = new JMenuItem("Exit");
		mnHamsterwrench.add(mntmExit);
		
		JMenu mnFile = new JMenu("File");
		menuBar.add(mnFile);
		
		JMenuItem mntmNewRpg = new JMenuItem("New");
		mnFile.add(mntmNewRpg);
		
		JMenuItem mntmOpen = new JMenuItem("Open");
		mnFile.add(mntmOpen);
		
		JSeparator separator_1 = new JSeparator();
		mnFile.add(separator_1);
		
		JMenuItem mntmClose = new JMenuItem("Close");
		mnFile.add(mntmClose);
		
		JSeparator separator = new JSeparator();
		mnFile.add(separator);
		
		JMenuItem mntmSave = new JMenuItem("Save");
		mnFile.add(mntmSave);
		
		JMenuItem mntmSaveAs = new JMenuItem("Save As...");
		mnFile.add(mntmSaveAs);
		
		JMenu mnTools = new JMenu("Tools");
		menuBar.add(mnTools);
		
		JMenuItem mntmLumpManager = new JMenuItem("Lump Manager...");
		mnTools.add(mntmLumpManager);
		
		JMenuItem mntmReloadspy = new JMenuItem("ReloadSpy...");
		mnTools.add(mntmReloadspy);
		
		JMenu mnHelp = new JMenu("Help");
		menuBar.add(mnHelp);
		
		JMenuItem mntmIndex = new JMenuItem("Index");
		mnHelp.add(mntmIndex);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.NORTH);
		
		JLabel lblHamsterwrench = new JLabel("HamsterWrench 0.01 beelzebufo-compatible");
		panel.add(lblHamsterwrench);
		
		JPanel panel_1 = new JPanel();
		contentPane.add(panel_1, BorderLayout.CENTER);
		panel_1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JPanel pnlEdit = new JPanel();
		pnlEdit.setBorder(new TitledBorder(null, "Edit", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.add(pnlEdit);
		pnlEdit.setLayout(new GridLayout(0, 4, 0, 0));
		
		JButton btnEditGraphics = new JButton("Graphics");
		pnlEdit.add(btnEditGraphics);
		
		JButton btnEditMapData = new JButton("Map Data");
		pnlEdit.add(btnEditMapData);
		
		JButton btnEditGlobalText = new JButton("Global Text Strings");
		pnlEdit.add(btnEditGlobalText);
		
		JButton btnEditHeroStats = new JButton("Hero Stats");
		pnlEdit.add(btnEditHeroStats);
		
		JButton btnNewButton = new JButton("Enemy Stats");
		pnlEdit.add(btnNewButton);
		
		JButton btnEditAttacks = new JButton("Attacks");
		pnlEdit.add(btnEditAttacks);
		
		JButton btnItems = new JButton("Items");
		pnlEdit.add(btnItems);
		
		JButton btnShops = new JButton("Shops");
		pnlEdit.add(btnShops);
		
		JButton btnBattleFormations = new JButton("Battle Formations");
		pnlEdit.add(btnBattleFormations);
		
		JButton btnTextBoxes = new JButton("Text Boxes");
		pnlEdit.add(btnTextBoxes);
		
		JButton btnMenus = new JButton("Menus");
		pnlEdit.add(btnMenus);
		
		JButton btnVehicles = new JButton("Vehicles");
		pnlEdit.add(btnVehicles);
		
		JButton btnTagNames = new JButton("Tag Names");
		pnlEdit.add(btnTagNames);
		
		JButton btnFont = new JButton("Font");
		pnlEdit.add(btnFont);
		
		JButton btnGameProperties = new JButton("Game Properties");
		pnlEdit.add(btnGameProperties);
		
		JButton btnSlices = new JButton("Slices");
		pnlEdit.add(btnSlices);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		
		JPanel pnlImport = new JPanel();
		pnlImport.setBorder(new TitledBorder(null, "Import", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.add(pnlImport);
		
		JButton btnMusic = new JButton("Music");
		pnlImport.add(btnMusic);
		
		JButton btnSfx = new JButton("SFX");
		pnlImport.add(btnSfx);
		
		JPanel pnlManage = new JPanel();
		pnlManage.setBorder(new TitledBorder(null, "Manage", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.add(pnlManage);
		
		JButton btnScripts = new JButton("Scripts");
		btnScripts.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		pnlManage.add(btnScripts);
		
		JLabel label_1 = new JLabel("");
		panel_1.add(label_1);
	}

}
